<div class="cctt">
<div class="content">
    <div class="introca">
<?php
if(count($listcart)==0)
{
    echo '<div align=center style="padding:40px;font-size:15px;color:red">';
    echo getLang('Not has product in order');
    echo '</div>';
    echo '</div></div></div><div class="ft"></div>';
    return;
}
?>
<form method="post">
<input type="hidden" name="opt" value="update">
<table class="tblcart" cellpadding="0" cellspacing="0">
<tr class="th">
    <td><?php echo getLang('Product')?></td>
    <td width="12%" nowrap=""><?php echo getLang('Price')?></td>
    <td width="5%" nowrap=""><?php echo getLang('Count')?></td>
    <td width="5%" nowrap=""><?php echo getLang('Total Price')?></td>
    <td width="2%">&nbsp;</td>
</tr>
<?php
foreach($listcart as $i=>$cart)
{
?>
<tr class="dt" id="ld_<?php echo $i?>">
    <td><?php echo $cart['cName']?></td>
    <td nowrap="" align="right"><?php echo getPriceClient($cart['cPrice'])?></td>
    <td><input name="count[]" id="count_<?php echo $i?>" style="width: 50px;" value="<?php echo $cart['iCount']?>"/></td>
    <td nowrap="" align="right"><?php echo getPriceClient($cart['totalprice'])?></td>
    <td nowrap=""><a href="#xoa" onclick="delrow(<?php echo $i?>)"><?php echo getLang('delete')?></a></td>
</tr>
<?  
}
?>
</table>
<div align="right" style="padding: 20px;border-bottom: 1px solid #dddddd;">
    <?php echo getLang('Total Price Order')?>: <span class="ttpr"><?php echo getPriceClient($totalprice)?></span>&nbsp;&nbsp;&nbsp;&nbsp;
    <input class="submit" type="submit" value="<?php echo getLang('Update')?>" />
</div>
<div align="right" style="padding: 20px;">
    <input class="submit" type="button" onclick="location='/checkout'" value="<?php echo getLang('send order')?>" />
</div>
</form>
</div>
</div>
</div>
<div class="ft"></div>
<script>
function delrow(id)
{
    document.getElementById('ld_'+id).style.display='none';
    document.getElementById('count_'+id).value=-1;
}
</script>